package ualrcdg.server;

import java.io.Serializable;

/**
 * Data transfer object to facilitate transfer of CDG Player information between CDG Server modules.
 */
public class Player implements Serializable
{
	private static final long serialVersionUID = -475669186845977905L;
	
	final String username;
	final String password;
	
	/**
	 * Primary constructor
	 * 
	 * @param username the username of the Player object to be created 
	 * @param password the password of the Player object to be created
	 */
	public Player( String username, String password )
	{
		this.username = username;
		this.password = password;
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString( )
	{
		return "Player [username=" + username + ", password=" + password + "]";
	}
}
